package com.luxk.db.sql.parser;

import java.util.ArrayList;

public class LPNTable extends AbstractLogicalPlanNode {
	private long rowCnt;
	private long blockCnt;
	
	private	String tableName;
	
	private ArrayList<LPNTableColumn> columns;
	
	public LPNTable() {
		this.rowCnt = 0;
		this.blockCnt = 0;
		this.tableName = null;
		this.columns = new ArrayList<LPNTableColumn>();
	}

	public long getRowCnt() {
		return rowCnt;
	}

	public void setRowCnt(long rowCnt) {
		this.rowCnt = rowCnt;
	}

	public long getBlockCnt() {
		return blockCnt;
	}

	public void setBlockCnt(long blockCnt) {
		this.blockCnt = blockCnt;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}
	
	public void addColumn(LPNTableColumn column) {
		this.columns.add(column);
	}
	
	public LPNTableColumn getColumn(int idx) {
		return this.columns.get(idx);
	}
}

class LPNTableColumn {
	String columnName;
}
